package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.CpsChapter;
import cn.powertime.evaluation.mapper.CpsChapterMapper;
import cn.powertime.evaluation.service.CpsChapterService;
import cn.powertime.evaluation.vo.AppCourseVo;
import cn.powertime.evaluation.vo.CpsSearchVo;
import cn.powertime.evaluation.vo.WebChapterVo;
import cn.powertime.evaluation.vo.WebRespChapterListVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程章节表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class CpsChapterServiceImpl extends ServiceImpl<CpsChapterMapper, CpsChapter> implements CpsChapterService {

    @Autowired
    private CpsChapterMapper cpsChapterMapper;

    @Override
    public List<WebRespChapterListVo> chapterList(Long courseId, Long uid) {
        return cpsChapterMapper.chapterList(courseId,uid);
    }

    @Override
    public List<WebChapterVo> chapterTeherList(AppCourseVo vo) {
        return cpsChapterMapper.chapterLists(vo);
    }

    @Override
    public List<WebChapterVo> chapterSearchLists(CpsSearchVo cpsSearchListVo) {
        return cpsChapterMapper.chapterSearchLists(cpsSearchListVo);
    }

    @Override
    public List<WebChapterVo> chapterListType(AppCourseVo vo) {
        return cpsChapterMapper.chapterListType(vo);
    }
}
